package com.cloud.sky.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cloud.sky.entity.po.Member;
import com.cloud.sky.service.MemberService;
import com.cloud.sky.mapper.MemberMapper;
import org.springframework.stereotype.Service;

/**
 * @author tyrone
 * @description 针对表【member】的数据库操作Service实现
 * @createDate 2024-08-04 17:04:00
 */
@Service
public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member>
        implements MemberService {

    @Override
    public Member getByOpenId(String openId) {
        LambdaQueryWrapper<Member> eq = new QueryWrapper<Member>().lambda().eq(Member::getOpenId, openId);
        return getOne(eq);
    }
}




